#ifndef RESULTPAINTDIALOG_H
#define RESULTPAINTDIALOG_H

#include <QPushButton>
#include <QBoxLayout>
#include <QPainter>
#include <QDialog>
#include <QPixmap>
#include <QLabel>
#include <QEvent>

#include "defs.h"

class ResultPaintDialog : public QDialog
{
Q_OBJECT
private:

    QVector< QVector<int> > input;
    QVector< QVector<int> > output;
    QVector<QColor*> colors;

    QRect scheduleRect;
    QRect legendRect;

    QPixmap *schedulePixmap;
    QPixmap *legendPixmap;

    QLabel  *scheduleLable;
    QLabel  *legendLabel;

    QPushButton *closeButton;

    QVBoxLayout *mainLayout;

    void makeResize();
    //void changeEvent ( QEvent * event );
    void drawSchedule();
    void drawLegend();

public:
    ResultPaintDialog(QWidget *parent = 0);
    void setTaskParams( const QVector<QVector<int> > input, const QVector<QVector<int> > output );

signals:

public slots:

};

#endif // RESULTPAINTDIALOG_H
